<aside class="main-sidebar">

  <!-- sidebar: style can be found in sidebar.less -->
  <section class="sidebar">

    <!-- Sidebar user panel (optional) -->
    <div class="user-panel">
      <div class="pull-left image">
        <img src="/images/user2-160x160.jpg" class="img-circle" alt="User Image">
      </div>
      <div class="pull-left info">
        <p>Alexander Pierce</p>
        <!-- Status -->
        <a href="#">
          <i class="fa fa-circle text-success"></i> 在线</a>
      </div>
    </div>

    <!-- search form (Optional) -->
    <form action="#" method="get" class="sidebar-form">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="Search...">
        <span class="input-group-btn">
          <button type="submit" name="search" id="search-btn" class="btn btn-flat">
            <i class="fa fa-search"></i>
          </button>
        </span>
      </div>
    </form>
    <!-- /.search form -->

    <!-- Sidebar Menu -->
    <ul class="sidebar-menu">
      <li class="header">HEADER</li>
      <!-- Optionally, you can add icons to the links -->
      <li class="<%= activeIndex == 0 ? 'active' : ''%>">
        <a href="/">
          <i class="fa fa-link"></i>
          <span>首页</span>
        </a>
      </li>
      <li class="<%= activeIndex == 1 ? 'active' : ''%>">
        <a href="/list">
          <i class="fa fa-link"></i>
          <span>电影列表</span>
        </a>
      </li>
      <li class="<%= activeIndex == 2 ? 'active' : ''%>">
        <a href="/users">
          <i class="fa fa-link"></i>
          <span>用户中心</span>
        </a>
      </li>
      <li class="<%= isBoss ? 'show' : 'hide'%>">
        <a href="/users">
          <i class="fa fa-link"></i>
          <span>现金提现</span>
        </a>
      </li>
      <li class="<%= activeIndex == 3 ? 'active' : ''%>">
        <a href="/users/casts">
          <i class="fa fa-link"></i>
          <span>演员列表</span>
        </a>
      </li>
      <li class="<%= activeIndex == 4 ? 'active' : ''%>">
        <a href="/list/fenye?limitNum=4&pageCode=0">
          <i class="fa fa-link"></i>
          <span>电影列表分页</span>
        </a>
      </li>
      <!-- 精彩家庭 -->
      <!-- 轮播 -->
      <li class="<%= activeIndex == 5 ? 'active' : ''%>">
        <a href="/nav">
          <i class="fa fa-link"></i>
          <span>nav导航</span>
        </a>
      </li>
      <li class="treeview <%= activeIndex == 6 ? 'active' : ''%>">
        <a href="#">
          <i class="fa fa-link"></i>
          <span>轮播图管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li>
            <a href="/banner?bannerType=0">首页轮播图</a>
          </li>
          <li>
            <a href="/banner?bannerType=1">分类轮播图</a>
          </li>
        </ul>
      </li>
      <!-- 简介 -->
      <li class="treeview <%= activeIndex == 7 ? 'active' : ''%>">
        <a href="#">
          <i class="fa fa-link"></i>
          <span>平台简介</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li>
            <a href="/platform?platformType=0">平台简介</a>
          </li>
          <li>
            <a href="/platform?platformType=1">平台架构</a>
          </li>
          <li>
            <a href="/platform?platformType=2">平台文化</a>
          </li>
        </ul>
      </li>

      <li class="treeview <%= activeIndex == 8 ? 'active' : ''%>" onclick="liebiao()" >
        <a href="/goods">
          <i class="fa fa-link"></i>
          <span>商品列表</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li>
            <a href="/goods/fenye?limitNum=4&pageCode=0">商品列表分页</a>
          </li>
        </ul>
      </li>
    </ul>
    <!-- /.sidebar-menu -->
  </section>
  <!-- /.sidebar -->
</aside>

<script>
  function liebiao() {
    window.location.href = "/goods"
  }
</script>